#include <stdio.h>
#include <iostream>
#include <vector>



int main2()
{
	std::vector<int> pArr;
	pArr.push_back(1);
	pArr.push_back(2);
	pArr.push_back(3);
	pArr.push_back(4);
	pArr.push_back(5);
	auto begin1 = pArr.begin();
	auto end1 = pArr.end();

	begin1=pArr.erase(begin1);
	printf("%d ", *begin1);
	/*begin1 = pArr.begin();
	end1 = pArr.end();
	for (begin1; begin1 != end1; ++begin1)
	{
		printf("%d ", *begin1);
	
	}*/
	return 0;
}
